package com.hj.system.controller;


import com.hj.system.entity.base.DeptEntity;
import com.hj.system.service.DeptService;
import com.hj.system.utils.ResponseUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.annotation.Secured;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.security.RolesAllowed;
import java.util.List;

/**
 * <p>
 * 部门管理 前端控制器
 * </p>
 *
 * @author wxf
 * @since 2021-04-01
 */
@RestController
@RequestMapping("/sys/dept")
public class DeptController extends BaseController<DeptEntity, DeptService> {
    @Autowired
    private DeptService deptService;

    @Override
    public DeptService getBaseService() {
        return deptService;
    }



}

